<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CDN Vue Example</title>
    <!-- 通过 CDN 引入 Vue -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js"></script>
</head>
<style>
    .mask-wrap {
        z-index: 1000;
        position: absolute;
        width: 100vw;
        height: 100vh;
        background: red;
        /*transform-origin: 50% 50%;*/
        /*transform: rotateX(0deg);*/
        transition: all .5s;
    }

    .mask-wrap-el {
        z-index: 1000;
        position: absolute;
        width: 0;
        height: 0;
        /*transform-origin: 50% 50%;*/
        /*transform: rotateX(90deg);*/
        transition: all .5s;
    }
</style>
<body>
<div id="app">
    <div :class="isVisualMask?'mask-wrap':'mask-wrap-el'">
            13211
    </div>
</div>

<script>
    // 创建一个新的 Vue 实例
    new Vue({
        el: '#app',
        data: {
            isVisualMask: true
        },
        mounted() {
            this.timeout()
        },
        methods: {
            timeout() {
                setTimeout(() => {
                    this.isVisualMask = false
                }, 3000)
            }
        }
    });
</script>
</body>
</html>
